<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%--


		 编辑项目窗口


 --%>
<div class="modal inmodal fade" id="modifyMerchantProjectPop" tabindex="-1"
	role="dialog" aria-hidden="true">
	<div class="modal-dialog modal-lg"  style="width: 80%">
		<div class="modal-content">
			<div class="modal-header">
				<h4 class="modal-title">编辑项目</h4>
			</div>
			<div class="modal-body" style="font-weight: bold;font-size: 14px;">
                        <form method="get" class="form-horizontal">
                                <input type="hidden"  class="id" name="id">
								<div class="form-group">
			                                <label class="col-sm-2 control-label">商户</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  mid" name="mid">
			                                     </select>
			                                </div>
			                      </div>
			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">项目名称</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control wxName input_validate" name="wxName" notNull="公众号名称不能为空"  placeholder="">
			                                </div>
			                      </div>	
			                      			                      	
								<div class="form-group">
			                                <label class="col-sm-2 control-label">排序</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control indexNo" name="indexNo"  
								                                                placeholder="数字越高排序越靠前，最大999">
			                                </div>
			                    </div>			                      		
								<div class="form-group">
			                                <label class="col-sm-2 control-label">项目编号</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control projectNo" name="projectNo" disabled="disabled">
			                                </div>
			                    </div>
								<div class="form-group">
			                                <label class="col-sm-2 control-label">剩余金额</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control totalMoney" name="totalMoney" readonly="readonly">
			                                </div>
			                    </div>
								<div class="form-group">
			                                <label class="col-sm-2 control-label">上次充值后余额</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control currentMoney" name="currentMoney" readonly="readonly">
			                                </div>
			                    </div>
								<div class="form-group">
			                                <label class="col-sm-2 control-label">累计金额</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control summaryMoney" name="summaryMoney" readonly="readonly">
			                                </div>
			                      </div>	
			                      		
								<div class="form-group">
			                                <label class="col-sm-2 control-label">单价</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control price" name="price" readonly="readonly">
			                                </div>
			                     </div>			
			                     
			                   	 <div class="form-group">
			                                <label class="col-sm-2 control-label">接口类型</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  interfaceType" name="interfaceType"  onchange="selectInterfaceType(this);">
				                                        <option value="0">全托管</option>
				                                        <option value="1">API对接接口</option>
				                                        <option value="3">回答问题领红包</option>
				                                        <option value="2">其它</option>
			                                     </select>
			                                </div>
			                      </div>			                      
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label">项目开始时间</label>
			                               <div class="col-sm-2 date newProPopTime" style="z-index:9990">
				                                <div class="input-group date">
					                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					                                <input type="text" value="" class="form-control startTime input_validate" name="startTime" notNull="项目开始时间不能为空" >
					                            </div>
				                            </div>
				                           <label class="col-sm-1 control-label">结束时间</label>
			                               <div class="col-sm-2 date newProPopTime" style="z-index:9990">
				                                <div class="input-group date">
					                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
					                                <input type="text" value="" class="form-control endTime input_validate" name="endTime" notNull="项目结束时间不能为空">
					                            </div>
				                            </div>
			                      </div>	
			                      
								 <div class="form-group">

			                      </div>
			                        		
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">项目logo</label>
			                                <div class="col-sm-6">
			                                    <input type="file" class="form-control" name="file" onchange="uploadLogoImage('ed_logoUrl');"  id="ed_logoUrl"> 
			                                    <input type="hidden" class="logoUrl  image" name="logoUrl"  placeholder="">
			                                    <br/><img alt="" src="" class="logoUrlImage" style="display: none">
			                                </div>
			                      </div>
			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">项目banner</label>
			                                <div class="col-sm-6">
			                                    <input type="file" class="form-control" name="file" onchange="uploadLogoImage('ed_bannerUrl');"  id="ed_bannerUrl"> 
			                                    <input type="hidden" class="banner  image" name="banner"  placeholder="">
			                                    <br/><img alt="" src="" class="logoUrlImage" style="display: none">
			                                </div>
			                      </div>
			                      
			                     <div class="form-group">
			                                <label class="col-sm-2 control-label">上传二维码</label>
			                                <div class="col-sm-6">
			                                    <button class="btn btn-primary btn-xs" type="button" id="codePicUrl1" style="display: none" onclick="createCode(this);">生成二维码</button><br>
			                                    <input type="file" class="form-control" name="file" onchange="uploadImage('codePicUrl2','code');"  id="codePicUrl2" style="display: none"> 
			                                    <input type="hidden" name="codePicUrl" class="codePicUrl" >
			                                    <img class="codePicUrlImage" src="" alt="">
			                                </div>
			                      </div>			                      	
			                      			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">项目地址</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control projectUrl " name="projectUrl"  placeholder="">
			                                </div>
			                      </div>
			                      
			                      			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">专场活动链接</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control activeUrl " name="activeUrl"  placeholder="">
			                                </div>
			                      </div>				                      				                      
			                      
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label">验证类型</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  verifyType" name="verifyType">
			                                    	<option value="1">不验证</option>
			                                    	<option value="2">手机</option>
			                                    	<option value="3">QQ</option>
			                                    	<option value="4">邮箱</option>
			                                     </select>
			                                </div>
			                      </div>	
			                      
			                      			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">是否当面扫描</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  isFaceScan" name="isFaceScan">
			                                    	<option value="1">否</option>
			                                    	<option value="2">是</option>
			                                     </select>
			                                </div>
			                      </div>
			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">是否直推项目</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  isSpread" name="isSpread">
			                                    	<option value="1">否</option>
			                                    	<option value="2">是</option>
			                                     </select>
			                                </div>
			                      </div>	
			                      
			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">是否需要头像</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  isNeedHead" name="isNeedHead">
			                                    	<option value="1">否</option>
			                                    	<option value="2">是</option>
			                                     </select>
			                                </div>
			                      </div>			                      		
			                      
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">选择名单类型</label>
			                                <div class="col-sm-6">
			                                    <select class="form-control m-b  nameListType" name="nameListType">
			                                    	<option value="1" selected="selected">白名单</option>
			                                    	<option value="2">黑名单</option>
			                                    	<option value="0">不限(不包含黑名单)</option>
			                                     </select>
			                                </div>
			                      </div>			                                            
			                      
			                      <%-- 区域设置 --%>
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label"></label>
			                                <div class="col-sm-6">
												<div class="ibox float-e-margins">
								                    <div class="ibox-title" style="background-color: #23c6c8;color: #fff;">
								                        <h5>设置筛选区域<small>&nbsp;</small></h5>
								                        <div class="ibox-tools">
								                            <a class="collapse-link">
								                                <i class="fa fa-chevron-down"></i>
								                            </a>
								                        </div>
								                    </div>
								                    <div class="ibox-content" style="display: none">
							   							  <div class="form-group">
									                                <label class="col-sm-2 control-label">省</label>
									                                <div class="col-sm-6">
									                                    <input type="text" class="form-control province" name="province">
									                                </div>
									                      </div>	
									                      <div class="form-group">
									                                <label class="col-sm-2 control-label">市</label>
									                                <div class="col-sm-6">
									                                    <input type="text" class="form-control city" name="city">
									                                </div>
									                      </div>	
									                      <div class="form-group">
									                                <label class="col-sm-2 control-label">区</label>
									                                <div class="col-sm-6">
									                                    <input type="text" class="form-control district" name="district">
									                                </div>
									                      </div>	
									                      <div class="form-group">
									                                <label class="col-sm-2 control-label">城市代码</label>
									                                <div class="col-sm-6">
									                                    <input type="text" class="form-control cityCode" name="cityCode">
									                                </div>
									                      </div>				                    		
								                    </div>
								                </div>
			                                </div>
			                      </div>	
			                      
			                      
			                      <%-- 红包设置 --%>
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label"></label>
			                                <div class="col-sm-6">
												<div class="ibox float-e-margins">
								                    <div class="ibox-title" style="background-color: #23c6c8;color: #fff;">
								                        <h5>红包设置<small>&nbsp;</small></h5>
								                        <div class="ibox-tools">
								                            <a class="collapse-link">
								                                <i class="fa fa-chevron-down"></i>
								                            </a>
								                        </div>
								                    </div>
								                    <div class="ibox-content" style="display: none">
															<div class="form-group">
										                                <label class="col-sm-3 control-label">红包发放状态</label>
										                                <div class="col-sm-5">
											                                  <select class="form-control m-b  isOpen" name="isOpen">
											                                        <option  selected="selected" value="1">允许</option>
											                                        <option value="2">禁止</option>
										                                      </select>
										                                </div>
										                      </div>								                    
															<div class="form-group">
										                                <label class="col-sm-3 control-label">扫码红包金额</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control operatorMoney input_validate" name="operatorMoney" 
																		                                    notNull="扫码红包金额不能为空" 
																		                                    number="扫码红包金额必须是数字" 
																		                                    placeholder="">
										                                </div>
										                     </div>	
										                     		
															<div class="form-group">
										                                <label class="col-sm-3 control-label">代理人红包金额</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control agentMoney input_validate" name="agentMoney" 
										                                                                   notNull="代理人红包金额不能为空"  
										                                                                   number="代理人红包金额必须是数字" 
										                                                                   placeholder="">
										                                </div>
										                     </div>	
								                    </div>
								                </div>
			                                </div>
			                      </div>	
			                      
			                      <%-- 微信参数 --%>
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label"></label>
			                                <div class="col-sm-6">
												<div class="ibox float-e-margins">
								                    <div class="ibox-title" style="background-color: #23c6c8;color: #fff;">
								                        <h5>设置微信参数<small>&nbsp;</small></h5>
								                        <div class="ibox-tools">
								                            <a class="collapse-link">
								                                <i class="fa fa-chevron-down"></i>
								                            </a>
								                        </div>
								                    </div>
								                    <div class="ibox-content" style="display: none">
							   							 <div class="form-group">
									                                <label class="col-sm-3 control-label">公众号类型</label>
									                                <div class="col-sm-5">
									                                    <select class="form-control m-b  wxServiceType" name="wxServiceType" onchange="showCreateCodeLink()">
									                                    	<option value="1">订阅号</option>
									                                    	<option value="2">服务号</option>
									                                    	<option value="3">APP</option>
									                                    	<option value="4">个人号</option>
									                                    	<option value="5">网站</option>
									                                     </select>
									                                </div>
									                      </div>		
									                      
														 <div class="form-group">
									                                <label class="col-sm-3 control-label">验证状态</label>
									                                <div class="col-sm-5">
									                                    <select class="form-control m-b  isAuthority" name="isAuthority" onchange="showCreateCodeLink()">
									                                    	<option value="1">未验证</option>
									                                    	<option value="2">已验证</option>
									                                     </select>
									                                </div>
									                      </div>	
									                      
									                      <div class="form-group">
										                                <label class="col-sm-3 control-label">APPID</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control wxAppId" name="wxAppId">
										                                </div>
										                      </div>	
										                      		
															 <div class="form-group">
										                                <label class="col-sm-3 control-label">Secret</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control wxSecret" name="wxSecret">
										                                </div>
										                      </div>			
															 <div class="form-group">
										                                <label class="col-sm-3 control-label">Token</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control wxToken" name="wxToken">
										                                </div>
										                      </div>			
															 <div class="form-group">
										                                <label class="col-sm-3 control-label">Url</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control wxUrl"  name="wxUrl">
										                                </div>
										                      </div>	
																	                    
															 <div class="form-group">
										                                <label class="col-sm-3 control-label">AccessToken</label>
										                                <div class="col-sm-5">
										                                    <input type="text" class="form-control accessToken" name="accessToken" readonly="readonly">
										                                </div>
										                      </div>		 
									                      
								                    </div>
								                </div>
			                                </div>
			                      </div>	
			                      	
								
			                    
								 <!-- 	
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">AccessTokenTime</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control accessTokenTime"  name="accessTokenTime">
			                                </div>
			                      </div>  -->	
			                      
			                      <div class="form-group">
			                                <label class="col-sm-2 control-label">自动回复内容</label>
			                                <div class="col-sm-6">
			                                    <textarea class="form-control autoReply" placeholder=""   ></textarea>
			                                </div>
			                      </div>

								 <div class="form-group interfaceUrl0" style="display: none">
			                                <label class="col-sm-2 control-label">唯一码查询地址</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control interfaceUrl"  name="interfaceUrl" >
			                                </div>
			                      </div>   
			                      
								 <div class="form-group interfaceKey0" style="display: none">
			                                <label class="col-sm-2 control-label">唯一码查询秘钥</label>
			                                <div class="col-sm-6">
			                                    <input type="text" class="form-control interfaceKey"  name="interfaceKey" >
			                                </div>
			                      </div>   
			                      		
								 <div class="form-group">
			                                <label class="col-sm-2 control-label">说明</label>
			                                <div class="col-sm-6">
			                                    <textarea class="form-control description" placeholder="项目描述"  ></textarea>
			                                </div>
			                      </div>			
                            </form>		
					 
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" onclick="modifyMerchantProject();">修改</button>
				<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
			</div>
		</div>
	</div>
</div>